import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
  {
    path: '/',
    redirect: '/sing'
  },
  {
    path: '/sing',
    component: () => import('@/views/Sing.vue')
  },
  {
    path: '/dance',
    component: () => import('@/views/Dance.vue')
  },
  {
    path: '/rap',
    component: () => import('@/views/Rap.vue')
  },
  {
    path: '/basketball',
    component: () => import('@/views/Basketball.vue')
  }
]

const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
